package cn.com.header.zbpk.account.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 用户-学科(教师任教学科)
 *
 * @author luohaidian
 * @date 2017-12-01
 * @time 17:20
 */
@Getter
@Setter
@ToString
public class UserSubject implements Serializable {

    /**
     * ID
     */
    private Long id;

    /**
     * 用户ID
     * @see cn.com.header.zbpk.account.entity.User#id
     */
    private Long userId;

    /**
     * 任教学科ID
     * @see cn.com.header.zbpk.base.entity.Subject#id
     */
    private Long subjectId;

    public UserSubject(){

    }

    public UserSubject(Long userId, Long subjectId){
        this();
        this.userId = userId;
        this.subjectId = subjectId;
    }

}
